package dex.studio.compose.news.ui.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.compose.ui.platform.ComposeView
import androidx.lifecycle.rxLifeScope
import dex.studio.compose.news.R
import dex.studio.compose.news.ui.pages.NewsListPage

class MainFragment : Fragment() {
    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        return ComposeView(requireContext()).apply {
            setContent {
                NewsListPage {
                    Toast.makeText(requireContext(), "hhhhh", Toast.LENGTH_SHORT).show()
                }
            }
        }
    }
}